package com.soft.line.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 小程序校验合同
 * @author wpb
 * @version 1.0
 * @date 2020/6/15 16:09
 */
@Data
public class AppletContract {

    private Integer id;

    @NotBlank
    private String depId;

    @NotBlank
    @Size(max = 200)
    private String contractName;

    @NotBlank
    private String contractType;

    @Size(max = 50)
    private String proId;

    @NotNull
    private BigDecimal totalAmount;

    @NotBlank
    @Size(max = 100)
    private String partA;

    @NotBlank
    @Size(max = 100)
    private String partB;

    @Size(max = 100)
    private String partC;

    @NotNull
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date signTime;

    @NotBlank
    @Size(max = 100)
    private String signAddr;

    @NotNull
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date beginDate;

    @NotNull
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endDate;

    @Size(max = 200)
    private String payment;

    @Size(max = 1000)
    private String note;

    @NotBlank
    private String modifyPerson;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date modifyTime;

    private String delFlg;

    @NotBlank
    private String contractNature;

    @Size(max = 1000)
    private String contractContent;

    private List<AttachmentInfo> deleteAttachmentList;
}
